<?php


namespace app\api\validate;


use think\Validate;

class LifeServicesValidate extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'cid' => ['require'],
        'area_mold' => ['require','in:all,province,city,area'],
//        'area_id' => [],
    ];
    /**
     * 提示消息
     */
    protected $message = [
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'getPageList'  => ['cid','area_mold'],
    ];


    public function __construct(array $rules = [], $message = [], $field = [])
    {
        $this->field = [
            'cid' => '分类',
            'area_mold' => '省市区类型',
            'area_id' => '省市区id',
        ];
        parent::__construct($rules, $message, $field);
    }

}